package com.oitsm.plugin.entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.sf.json.JSONObject;
/**
 * plug 元数据
 * @author Arab Runner
 * Jul 24, 2011 3:41:36 PM
 */
public class PluginMeta {
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 采集执行器
	 */
	private String excutor;
	
	private Map<String,String> attrs = new HashMap<String,String>();
	
	/**
	 * 采集器参数
	 */
	public List<PropMeta> props = new ArrayList<PropMeta>();
	
	/**
	 * 响应值
	 */
	public List<ResponseMeta> responses = new ArrayList<ResponseMeta>();
	
	/**
	 * 常量值
	 */
	public List<Meta> constants = new ArrayList<Meta>();
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public String getExcutor() {
		return excutor;
	}



	public void setExcutor(String excutor) {
		this.excutor = excutor;
	}



	public Map<String, String> getAttrs() {
		return attrs;
	}



	public void setAttrs(Map<String, String> attrs) {
		this.attrs = attrs;
	}



	public List<PropMeta> getProps() {
		return props;
	}



	public void setProps(List<PropMeta> props) {
		this.props = props;
	}



	public List<ResponseMeta> getResponses() {
		return responses;
	}



	public void setResponses(List<ResponseMeta> responses) {
		this.responses = responses;
	}



	public List<Meta> getConstants() {
		return constants;
	}



	public void setConstants(List<Meta> constants) {
		this.constants = constants;
	}



	@Override
	public String toString(){
		return JSONObject.fromObject(this).toString();
	}
}
